Removed some commented out/unneeded code.
Use the ChangeIntegrityStoreManager to ensure that objects inserted and then deleted via an undo are tracked properly.
Ensure that the managed object context whose save we're responding to is a child of the document context.