Begin handling some toserver messages. The code to encode outbound messages still needs to be done.