Add support for Rails 4

Updated tests, gemspec, and configs