Fixed the add url dialog when switching tabs (#1298)

Added code to setup modal dialogs when we switch to them with AHAH.
Fixed a bug with AHAHTabLoader where we wouldn't call the onComplete
function if the tab content was cached.