authz: use smaller interface to mock GitHub client in tests
Created by: unknwon
This is another effort to help remove global mocks for using GitHub API client, based on discussions in https://github.com/sourcegraph/sourcegraph/pull/9655, which defines a smaller interface and a client adapter/wrapper to be used in code, and a mock client in tests.
Special thanks to @keegancsmith :)