Classical Roots of the Unruh and Hawking Effects