Make github interaction more testable. Refactor out github hoster.