createRecord and updateRecord are directly taken from the ember-data rest adapter, with the exception of not adding the root element to the post data