Modified/refactored cfg and log libraries, mostly in preparation for integrating limited support of HOCON configuration.