add document.devtoolsMode for devtools

The flag is used to tag devtools UI document. It's needed
to disable the positive feedback loop of the webSocketFrameReceived event.