saveAs.unload

When all references to the library are gone it still leaks into the `view` via the added `unload` listener.
This is important in contexts that are somewhat persistent, e. g. in Firefox add-ons the `view` corresponds to the browser window which persists until the browser is closed.

The PR adds a `saveAs.unload` function that can be called during cleanup to remove the unload listener.