Fixing the auth bug and beginning the process of moving code around so auth is less hard to read.
Deleting old login.js, replaced by user.js
adds typeahead search