Rework colorful logging for console output only

Hi Paul,
this is the first of a view changes that I've made during the last weeks. It a resubmission of the colored console output patch. This one doesn't break the tests. It only acts on the console output, no effect on the logging file.

Thanks
Andre