Added msg format

Format the messages sent to the server. Do this already prior to RFCs being defined.