added websocket endpoint, removed duplication in jetty server