Added support for page model on error pages

This allows us to create custom js pages for error pages.
Still defaults to defaultPage is nothing is found.