Added caching to server.

Also finding the ephemerid that is closest to the current date in the
client.