GitHub api

Ready to be merged! This refactors out the api from the appDelegate. Needs keychain instead of NSUserDefaults, but will be fixed in separate branch.

<!---
@huboard:{"order":5.5,"milestone_order":14,"custom_state":""}
-->

I don't think you need this anymore. Line 35 seems to add the extra stuff