Update to support new oauth2 API (Fixes #11)