Correct state handling of sockets
Distinguish between delivery requested and wait condition fulfilled
Trigger delivery when wait condition is fulfilled
Make tests for starting daemons and client assume the same current directory
Added client test scripts
Logging improved
Scripts to start debugger added back
Log more compact
Improved log messages