cleanup of authentication handling in proxybase
cleaner async support in proxybase