Integrate syslog into glog framework and app cmdline.  (on top of preconnect)

Besides syslog support, add cmdline support for logging to files, as well as a handful of other cleanups & fixes.