livedata client: Factor out "stringify message and send it" into a helper.

(Extracted from ddp-pre1 branch.)
Maybe fix #555.
Add test for fix to #555.
Merge branch 'quiesce-fix' into devel
Workaround weird header issue in firefox. Fixes #553.