Add AMD output option for handlebars templates.

Adds configuration options to output compiled templates to AMD format instead
of storing them directly on `Ember.TEMPLATES`.