Bump Rails up to 4.1.0 and related changes

Fixes #27.