Fix ios closing

@bantic fix closing of the popup on iOS WIP.

* [x] needs tests 0_p
* [x] make sure it didn't break IE10

Also consolidate the IE post message fix.

Also update the basic example to look at testbuild to it will reload.
Blurgh, yeah you are correct. This only applies the fix in IE10.

I'm not sure of a clean pre-IE11 check. Maybe I can check for one of these:

http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx#legacyAPIs

The tests don't run in IE8 though, making it hard to see what is happening. I think we should be able to support IE8.

At the least I will find a feature detect that is better than this IE10 catch.