New version of Publisher.java that can log data to a file.

The log file can be replayed by ztreamy.tools.replay