Added new constants to assist in the creation of ODD
Added better handling of the REPL relation on Documents (obsoleting
active list items as well, need to have a look at this logic to ensure
it does what is intended)