Decouple client's requests and the server's responses using node event emitters