JSON API changes

Comply to the JSON API specification. See http://jsonapi.org/format/