Credential management automation

Initial set of service principal and other login tests.
Also fixes issues with get-azureenvironment and piping (without it the tests don't work)

Would be nice to file a PBI to improve error message to say something like "Foreign principal accounts can not authenticate in non-interactive mode. Remove -Credential parameter and try again."