Loosen dependency on Rails

This is possibly a temporary fix until the Rails dependency can be removed. In the meanwhile, it allows use on 4.1.x, which has been tested.

At least partially addresses #4.