First draft of worker-worker communication. Fixed some concurrency issues in the NIO handler