Added sendMessage API function and appropriate calling in WebServer class