Restructured messages.

Messages have been restructured. Instead of the thread local, we now have an explicit collection. Also, the syntax has been made more verbose.