move single-line printing to new class
refactor; no intended functionality change
move printing of new lines into LinePrinter.
Make LinePrinter members private, add comments.
Use LinePrinter in test runner.
Make ninja_test output nicer.