Check window.opener.name to see if a popup should handle

Pending confirmation that this works on IE, will merge.

Fixes #73, #71