Defecating ducks, talking busts, and mechanised Christs — Jessica Riskin on the wonderful history of automata, machines built to mimic the processes of intelligent life.