Fix memoryleaks when loading keys/certs

This patch set accompanies the patches on p11.
https://github.com/OpenSC/libp11/pull/7

engine_pkcs11 gets really small, only using provided p11 API.

Same rules apply, I got a rebased version as well.