Updates gems for Rails 4.
Updates configurations for Rails 4.