attempted to send response to client. Need to debug. Server sends status code and content-type to client. I can see that with firebug but the http status is always zero.  (refer to sendMessage() in chatimplementation.js)