* Slightly less crackolicious implementation of --compare, which doesn't require writing all the test results to a transactional database and then rolling them back. Write the results only with --record, and compare with PHP instead of SQL.
* Revert revert r37284 and fix --record/--compare
* Fix interaction of --record/--compare with --regex
* Use a separate DB connection for writing test results, so that it can actually be rolled back, say on ctrl-c. Uses the fun new LBFactory feature from r37302.