Fixed content type returned for JSON results and added simple support for content negotiation that can be used instead of the view parameter.