Update mocha to latest major version
Support oauth2 flows