Review all message types
We should review all the message types, ensure that the JSON handling is harmonized with the rest of the codebase, and make sure we do proper input validation on all fields from peers.