Cleaned up lotsa stuff from the old code; flattened the node graph into a card list; etc.