Refactor logging capture to better handle threads
CLI commands now sent to running daemon without loading plugins/config/db
(still a bit more work/cleanup to do)