Simple implementation of chat server using EventMachine