bugfix contact and media create/update, refactor Backbone JSONAPI adapter