Added defines (for wwlogs functions) and a test waiter class. Also improved the worker which performs proper mutex lock/unlock when synchronyzing with the chain (unique_locks are now scoped variables instead of shared member)