Add mock testing for the p11_crypto plugin

* Initial set of unit tests
* Simplify the class by removing test-specific code (now done via patch)

Change-Id: I6b2f81d4f53f133731e0f21539b0e463a266c3fa
Implements: bp/crypto-hsm/unit-tests