Start of snapshot work.
Add test for key equivalence.
Snapshots and snapshot collection.
Style fixes.