implementation of message_composer; improved message_header
added Buffer, removed MessageBuffer, fixed some bugs