Adding an object model for messages and message headers