Humans have been terrified of automatons for centuries. But where would we be without them? What the rise of machines could teach us about ourselves and about humanity.