Major refactoring, still ongoing.

Importers now use a stack of parent ids to define the depth. The mechanism
to retrieve these IDs is still a total mess. Niod import disabled because
major refactoring of its dynamic ID generation is needed. Fixed several tests
that had arbitrary and nonsensical asserts. Much still to do.
Make NIOD identifier gen less gnarly and add tests for ID gen/hierarchy