Add ember-cli add-on requirements

I've added the code necessary to make this work as an [ember-cli](https://github.com/stefanpenner/ember-cli) addon. 
Minor style nit: using `app` here and `this.app` inside the `if` block is a refactoring hazard. We should probably use `this.app` in both places.