Github fixes

Github's API has changed since this was initially written, causing github logins to fail.

This fixes the changed API issues, and also catches some of the other common errors showing up in the logs, to hopefully make failues a bit more explicable to users.