Implement new main loop. Daemon can exit now
after one-shot command -cmd and -t

-add OnCancel to Thread class
-add _do_stacktrace to Utils class
-Implament listeners for async staus reporting