First working tests and structure for graph models.
Aggressive cleanup in util, including CLI tools and data structures.