websocket transport fixes, ws stub fixes, some protocol changes