Simplified DaemonManager to DaemonLauncher and added tests.