Remove binary archive from interface.

It's fairly useless, given that the receiver code starts reading
from the very message start anyway.
Add missing includes.
Add const version of as_vector().