Validate op parents properly
Add dag.valid_path()
Add Journal classes for linking digests

Moved from otsserver