Necessary refactors that were not performed when producing the InteractionGraph interface.
Adds exclusion from of redundant lucene-core (removed lower version used by mdk).
Passes leaf recording test. Ids where not handled as expected, which required some rearrangements.