initial work on authname revamp
lots of bugfixes, authname fixes