Issue 24: add support for automatic refresh of oauth token. optional and initially set to false