CORE-5390: added the rest of the code needed to retrieve authentication tokens
CORE-5390: renamed OAuthToken to OAuthTokenInfo
CORE-5390: added some documentation