Fire an unload event on removal

Plugins that need to bind events to `window` or `document`
can attach a listener for this event and unbind their event
handlers.

However, for symmetry, unload is fired only if load has been
fired.
Merge pull request #1446 from jfirebaugh/unload

Fire an unload event on removal