updated some assert handling to give more info in messages. WebSocketClient.js updated to try to compare json strings instead of converting to objects first