XWIKI-9577: Improve Crypto API for full PKI support

Some renaming and minor tweaks to the store implementation.
This breaks compatibility, but since this a young API, it does not really matter.