Fix has_asset_pipeline? to work with Rails 4
Use separate class for preprocessing js

This seems to be the right way for >= 3.1
Bump patch version