Upgrade rails and other gems.