added custom mime_type support for pages
fixed json api support
json api makes no sense if erb is allowed and not rendered
fixed error page rendering
fixed test
Merge pull request #505 from hicknhack-software/custom_mime_type_support

added custom mime_type support for pages