added custom mime_type support for pages

I use this to generate RSS feeds with comfy.
By removing this, you remove the JSON API.