Rails 4.1 fixes

A couple fixes for the handlebars Sprockets engine in Rails 4.1. The engine registration issue was preventing the app from booting. The file extension issue causes `HandlebarsTemplates` to be `undefined` once the JS bundle reaches the browser.