Refactor Oauth and create private repo functionality

* Make all HTTP requests to the Github API go through a single function
* Make all result sorting go through a single function
* Refactor admin and user authentication
* Refactor the 'create private repo' class

@robertkluin-wf  @amandeepgill-wf @beaulyddon-wf