Implement index.json support and support for "image" and JSON mime type