Add message builder

A small class to enforce the structure of messages.