Lots of changes. Crufty stuff removed, code modularized a ton to
work on Linux and/or Mac. Hostname-specific environments can be
customized via a file in system-confs.