Added skeleton functionality for looking up an entry from the state.
Factored out the generation of command state test data to a separate module.
More functionality and testing for entry lookup.
Renaming of properties.