test: use JSON instead of HTML5 structured clone to post log records from worker.
test: simplify worker driver a bit.