Use a distinct file for error output of spawned processes.  Minor refactoring of publishing code.  Correct handling of escape character in JSON string.  Fixed issue where trailing junk was included in compressed outpout.