Extracted some interfaces out of TestableDaemon and DaemonLogsAnalyzer, and some renames.
Reworked unit test a bit to get rid of race conditions.