don't assume that everyone returns a content type

we default to application/json
Merge git://github.com/Graylog2/graylog2-web-interface into develop