Extract CLI output generation into own class

In anticipation of creating an argument parser (to prevent the CLI class
from having multiple responsibilities), all output generating logic in
CLI was moved to CommandLineOutput.