Make write-message public.

At least until there's some nicer api, we need *some* entry point
into cassette!
Get CRC and other header bits into message-codec