Add rev_id support to open_process_all

This is a backwards incompatible change as the iter fun now must
accept an additional arg for the rev_id. Changing the arity seemed
like a good approach so that it would be easy to find where in code we
needed to update and then could decide whether rev_id was needed or
not.