Updates dependencies to support rails 4.