Move date parsing to controller.
Limit history to 1 hour
Fix bug in old data removal.