PhatDB: Implement hashing of DB state for consistency checks

+ Removed `parent` reference in Nodes as it caused cyclical structure
+ We're making an assumption that `gob` encodes in a repeatable way
+ Included tests to see if this holds true on other platforms
+ Even if the `gob` assumption is false, it's fine if it's locally good