Migrate inspector connection to the new API.

We are changing API between DevTools page and browser (for example, see https://codereview.chromium.org/733053008). This patch is required to not break tracing opened from chrome://inspect.