Fix two Signature issues on multipage/multisignature documents
First issue:
-
The "document is totally signed" was based on the last signature of the last page (that had signatures) that is not correct and needs to be based in the last signature by date
-
The "Rev #" number was based on the signature on the page, so if we had two pages with one signature each the model showed "Rev 1" for both
It adds new API which is not awesome in a stable branch, but the first issue is important enough that warrants this to go to the stable branch