This branch decouples the Message class from the raw representation of messages, which will not be used in the new sync protocol.
More preparation for #1240.