Update dependencies for rails 4.