Emit application/json mimetype for all JSON responses

Diazo based theming requires correct mimetype for JSON responses. If there is no application/json response, the data passed through Diazo are wrapped with doctype/html tags and javascript can't parse them.