Refactored a bit, especially around the LoginService and GitHub api.