Rails 4 compatibility

I'm not sure why but Sprockets.register_engine does not work in rails 4.

Using app.assets.register_engine to add hamljs engine, handlebars uses the same way, see https://github.com/leshill/handlebars_assets/blob/master/lib/handlebars_assets/engine.rb