Refactor ConsoleReporter.

To make it easier to divert output to stderr or a file.