Change BaseAuth to get unset vars from env

and use that as the default auth class
Break auth test method into several classes and methods

for logic reuse and small (single test) methods.
Move CLI bits to separate modules