Draft: interface: add basic interface to store and get object references
This will allow the takedown processing scripts to check whether the objects they intend to remove are referenced by objects that are not expected to be removed.
Ref. #4680 (closed)