Monitor socket threads

Convert the DB dispatcher to a full on dispatcher (sans log since we
want that separate) and watch the socket threads from the dispatch
thread. Main thread now only spawns the log and dispatcher.