Upgrade Rails and gems. Fixes #173