In process of updating agent for OAuth2 and refactored REST API