refactored and extracted models, controllers, routers, routes and helpers. Added lib ember-model for RESTAdapter support