Cache implementation

Implemented file cache for 404 pages.
Removed old XCLASS code, since its not used anymore in v6.
Added closing tag of php in FrontendHook.