GitHub-related fixes

This branch was originally locally named 'reinstall-fix' and was supposed to bring back the reinstaller. I renamed it because at this point it's looking like OAuth might be the way to go for that and I want to get that done first, so I figure I may as well have these changes in first as they'll apply to whatever I do with this!

(For anybody interested, see http://dw-dev.dreamwidth.org/144702.html for more information.)