Register sprockets engine in config.before_initialize. Making it rails 4 compatible