Add support for JSON and SVG responses

* jsonCount
* jsonSize
* support "image/svg+xml" content type