Move serialization terminator into the formatter class.

This won't be the same for protobuf encoding.
Receive and parse command responses in main data stream from VI.