refactored github oauth setup to use RESTful services instead of websockets