Code refactoring
Refactored http error handling
Shared functions - moviong them out to shared
Saving start, end, created and last updated as dates