Permit Connecting to the Companion from the Designer.

You can now always connect to the Companion, whether you are in the
Blocks Editor or the Designer.

Arrange for dialogs from replmgr.js to use GWT so it can put dialogs
on the main window.

Change-Id: Iecc174f8ad5b0436accd54fcb207550cdb30ddf8