Refactor routes and add Ember