Feed stderr with JSON-encoded objects

* use it for streaming log messages
Trigger "progress" event by piping JSON over stderr