Added message writers.

* WriterFactory - creates a writer from name.
* ConsoleWriter - writes to console with echo.
* FileWriter - writes to file, buffers lines.
* BufferWriter - writes to current buffer, and to a file.