Identifier login

This pulls in forgotten login changes from the obsolete dev branch.  The rest of the useful stuff from there will be the next pr.