Force all API calls to serve JSON with the right Content-Type

Nothing big here.