Implement message writer.

Yeah I like that. The separation was for solely for semantics in its current form but I like the added verification of the fragment on the "wire".