pkcs11: Added hotplug support and tests