Major reworking of the ephem code to allow reprocessing. Closes issue #28.