Add in Listener for echo server (beta)

I added the Listerner for cloud. It works well with the client echo
program but we still need to make it compatible with JSON and the
Servlet request.