added ember-data, refactored backend