CDAP-400 Added option to provide a Supplier<AccessToken> and various cleanups

old version: you're using hostname from tryConnect's argument to configure authClient