added a sendResponse method to format data for ember-data.