Add options for popup and focus

New option allows tab to be moved to a popup window rather
than a normal browser window.

New option allows focus to remain on new window.

Support pop-in of a window back to a tab in original window.