Surveillance, Companionship, and Entertainment: The Ancient History of Intelligent Machines