Convert to an AMD module

This has already been done inside the Ember.js repo :/