security: In Certificate::encode, need to set the type to KEY.
security: In IdentityCertificate, added publicKeyName_ and make getPublicKeyName just return it.  Internally call setPublicKeyName as needed to set it.  Make isCorrectName() check for "KEY".
security: OSXPrivateKeyStorage: When calling CFStringCreateWithCString, need to use kCFStringEncodingUTF8.
security: Remove IdentityStorage::getKeyNameForCertificate. Make getNewKeyName not virtual.
security: In IdentityManager::setDefaultCertificateForKey, pass the certificate, not a Name.  Make createIdentityCertificate take the certificatePrefix name.