Split off and improve daemon code
Add Julia daemon tester