Adding github api error handling.
Merge pull request #9 from rhyolight/github-api-error-handling

Adding github api error handling.
Merge remote-tracking branch 'upstream/master'