Added some code for the router

Added a framework for the daemon runtime.
Added a synchronous queue for the dispatch system.