Addition of WSPool that will store the opened sessions and link with the monitor token, refactor the javascript to user the websocket as well ajax calls if necessary