Revert "Add const data access to message_t"

This reverts commit d7da7d4d9dd5906eb38cb283045c70cec1b82d97.
Revert "Add explicit close method to context_t"

This reverts commit aaca47c9b5933721cb28231596508225333ed370.