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":""}
-->