Rewritten server - threads (workers) + event queue.
Outputs OK.