Refactor: CTS: Add the basics needed for running cts-cli tests.
For now I've only added support for the daemon tests, since there's only
four of them and they don't do anything special. This adds support for
running tests, diffing output, reporting results, and saving changed
output.
However, note that the giant sed block from the shell version is not
present yet, so even the daemon tests will report changed output.