Extracted out controller github http services into a modular github service of my own, and then cleaned up the controller script