Refactor github module into multiple files, one per API object