Fixes findOne if no data is cached.
Fixes changedAt event on single records.
Whitespace fixes.
Moves the cleanup method to a local scope.
Adds missing var.
More formatting fixes.
Fixes whitespace.
Enables <head> and <body> tags in templates.