added proper websocket handling
added proper websocket handling

mkeilman/sirepo,radiasoft/sirepo,radiasoft/sirepo,mkeilman/sirepo,mkeilman/sirepo,radiasoft/sirepo,radiasoft/sirepo,mkeilman/sirepo,mrakitin/sirepo,mrakitin/sirepo,radiasoft/sirepo,mrakitin/sirepo,mrakitin/sirepo