Implemented a simple logger class. So far only writing to stdout and stderr. But it is thread safe.
Rewrite all direct accesses to stdout and stderr and use the new logger class

Signed-off-by: Christian Rapp <crappbytes@gmail.com>