Allow use with Rails 4

Seems to function fine under Rails 4, I just had to change the railties dependency version to accept anything greater than or equal to 3.1.