Fixed a bug serializing multiple messages in v0 format. Updates to v1 format.
Added more flexible parsing of new agents (re-use parsing functionality where applicable).
Ported FastWriter variant over.