Added page not found handler in the service provider - page not found will always return 404.
Further work on the page rendering/caching logic.
Bugfix - no space before the @endif