Adding AMD support

Reference https://github.com/Chandler/grunt-ember-handlebars/blob/master/tasks/ember-handlebars.js