Feature refresh tokens

Adds the ability to refresh access tokens.