Separate ephemeris from templating, make templating a user-level feature.

This way users have full flexibility to use templates as they see fit.
Move loading of contacts and email account into own module.

Avoids circular deps.