Bump Rails up to 4.1.0 and related changes

Fixes #27.
Redundant curly braces around a hash parameter.<br>Line is too long. [147/80]<br>Space inside { missing.<br>Space inside } missing.