Updated gemspec dependencies and installation instructions for Rails 4 compatibility

I've tested this in my current Rails 4 project and purl.js is working well.