AUI-799 window does not fire event unload

Okay, I had to go thru the website to get this pull against your 1.0.x branch :/