Alex/326 github oauth

Here are the changes for the PR I had earlier.

There should be 1 failing test after this is merged: due to ``NotImplementedError``