Backport new authentication to 0.5
What?
This backports the new authentication token acquisition logic from !136 (merged) into the 0.5 release branch.
Why?
This will remove the need to setup a cronjob to refresh tokens for condor submission.
Who?
This MR was prepared by @daniel-williams.