Move message processing to new 'procmsg' module.

Compiles and passes tests.  Could use some refinement.
Nit: And for this whole block. Also just MIT license.