Add entry callbacks to the 'iterate' test tool
When we're testing the state machine, pass in callbacks for retrieving
information about entries that we're processing. We need to supply one
when we're saving CA certificates, so that we can make sure that
everything that needs to be in a file goes in.