Revert "Update rails and other gems." There are non-trivial problems. Fix this tonight.

This reverts commit 9923c1f93db1c3b4722e2c0fcfffe6d5c90a6cc3.