abstract out the addon-page url check to ensure that we also close those addon-pages on unload. fix up the addon-page tests so they match.
Merge pull request #1052 from clarkbw/addon-page-unload-fixes

Bug 887677 abstract out the addon-page url check r=@erikvold