Strip trailing whitespace
Use a handlers table for received messages
Add a TODO for pong