Big refactoring into ember-cli addon