New reference class definition and helper functions for automatically refreshing OAuth2.0 access tokens created by httr.