Refactor auth

just a rename starting a refactor where I use this to implement HTTP Digest auth