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

This reverts commit 64f47f27939e24da5dbb5d104158f67a274b5f1e.
Replace auto_link with a gem