extend ulog to work via UDP/TCP (untested) in a rudimentary fashion
factor out OCAP code in preparation for re-entrance and multi-process support