Output window

Support writing diagnostic messages to the output window.