Allow Ember versions >=1.2 and < 2.0.
Label anonymous functions.
Label promises.
Only pass resolve or reject as needed.
Throw an instance of Ember.Error.
Remove duplicate var + function named `ajax`.