Change Rails dependency to allow for Rails 4.0.0 and updating Gemfile.