Update rails, refs #1538, various cleanup wrt cas authentication, remove jquery dependency, fixes #804