Initial read/write from local file.

Message codec isn't matching up.
TODO check that the palettes match on
encode and decode.