Allow all 4.x releases of railties

Follows Rails' own asset pipeline gem dependency declarations.
Bump to 3.1.0.1 for railties dependency change