Add cli::execute_command_line to allow sending a line as a string to the command-line interface for execution. This will be used by automated tests.
Modify command-line interface to output to an ostream instead of always writing to std::cout.
Fix spelling error.