Adding chat_server, event_emitter, io_loop

- io_loop not really done