Add event to announce when objects are disposed

This is some necessary boilerplate to support a forthcoming proposal regarding object management, but I figured this commit was useful enough by itself to warrant a pull request.