Message writer

Creates a message writing utility that will work in both testing and stubbed scenarios.