Upgrade gems

Upgrades Rails to address latest security vulnerability. Also upgrades other gems.