These commits tighten up message size sanity checking by:
- Adding a new signal (SanityCheckMessages) to the networking code
- Refactoring MAX_PROTOCOL_MESSAGE_SIZE from the networking code to main
- Adding additional checks for several messages (e.g. ping messages are at most 8 bytes) to the main signal handler (next to the code that handles each message type)
Extending the SanityCheckMessages signal handler (or adding an additional handler) to do more sophisticated DoS detection/prevention is on my longer-term TODO list.