Add the start of some validation logic.

This will allow us to easily sanity check that contents of a given
compstate repo.