Initial refactoring of github integration
WIP
wip
wip
WIP
wip
wip
WIP
wip
wip
wip
wip
wip
wip
wip
wip
wip
wip
wip
wip