Change content-type to JSON-API

Also, refactor so content type is set for the whole API class, not per method.