Updated code to new API of ember-data. App is completely broken now!!