check for github API errors

For example, when two-factor authentication is first enabled, you will
get JSON like this:

    {
       u'message': u'Must specify two-factor authentication OTP code.'
       u'documentation_url':
           u'https://developer.github.com/v3/auth#working-with-two-factor-authentication',
    }