Add Rails 4 compatibility

A simple update to the Gemspec to allow any version of Rails above 3.1 and below 4.1.