Message formatting subsystem.

This is cribbed and refined from two OOO playn projects, originally from samskivert.