Implement message writer.

Any good reason to support ping payloads?