Added support for refreshing OAuth access tokens.