Moved message encoding and decoding into the message project to enable compression