Refactored (again...) factory's code, added main loop for the worker's thread
Worker behaves properly (pausing/resuming/deletion)
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)
Worker now properly ends (and joins) it's thread upon deletion
Improved again Worker's synchronization, removed unneeded notify() and lock() calls, modified loop so progress() is not called anymore after new Worker creation
Merge branch 'factory' into dev