security: In BasicIdentityStorage, implement setDefaultIdentity, setDefaultKeyNameForIdentity and setDefaultCertificateNameForKey by moving from TestIdentityStorage.