Removed a bunch of cruft code related to the old login system. Untested.