CORE-5577: created a library to make it easier to obtain and refresh access tokens