cleanup old websocket server and add html test endpoint