first implementation of output buffer

- not yet UTF8 aware, see issue #40
- not yet activated, currently a memory hog because buffer is filled with every output but never cleared