Refactoring auth and service initialization to add token expiry checking - if the auth token expires regenerate and reconnect to the service