Adding customised error pages
Fixing up display and picking of dates in the edit form
Setting custom error pages only if debug mode is off