Implement error handling and caching. Add the Image api.

Dependency to calendar to handle date and time.
Time module, error reporting, scheduling, new api functions.