Near final version of matcherendpoint and agentendpoint proxy and websocket implementation