code: function flatten(record, extraMeta) {
          var meta = extend({}, record.meta, extraMeta)
          return extend(
              {},
              { links: record.links, meta: meta },
              record.attributes,
              { id: record.id, type: record.type }
          );
      }
docs: Flatten the ID of an object with the rest of the attributes on a new object