Tab business is partially working. I just have to write in event
handlers for clicks, and also distinguish between opening a link in a
new tab and opening a link in the current tab.