Refactor github methods, recording rate limits