Updated dependencies to support Rails 4