Stuff for document signing.

This code provides dialogs, and infrastructure wrapping libxmlsec and gpgme that
implements document signing.