security: In IdentityStorage.addIdentity, do nothing if the identity already exists instead of throwing an exception.
security: In IdentityStorage.addKey, also call addIdentity to ensure that the identityName for the key exists.