Implemented a new messaging system.

Included a few a new library - message.