shad/MT: move messages logic to messages.{h,cpp}
shad/MT: better commenting.
shad/MT: add messages.cpp to Makefile