Refactoring github api, adding github to package.json