Repair and code robustness changes to tolerate both FreeBSD 9.1 and above so fetch doesn't break.

Relocated the GitHub update availability check to the top of the file, and added more connectivity checks.
Merge branch 'alcatraz' of https://github.com/fsbruva/thebrig into alcatraz

This catches Alexey's changes with my work today.