Fix the key manager, add more debugging
Override chooseEngineClientAlias and chooseEngineServerAlias to do something useful.