Rails 4

Updated gem dependencies to support rails 4