ENH: Close 'view URL' dialog on outside click

Make the 'view URL' dialog modal; dimming the rest of the page is nice,
and this also allows us to trivially arrange to close the dialog when
clicking outside of it (which we also do).