Disable locking the buffering calls because it will block the application at times.
Removes type as member varialbe from message structs.

type can now be queried by the message::message_to_type(message) function.
Removed the need for default constructors on messages.

Needed to change the serialization api a bit.