Changing dependency versions to support Rails 4.