chooseTab: Callback used to determine which remote tab attach to. Takes the
JSON array returned by http://host:port/json containing the tab list and
must return the numeric index of a tab. Defaults to a function that returns
the active one (function (tabs) { return 0; }).