CFY-1229 fixed keypair type declaration in plugin.yaml; fixed expanduser bug; fixed bug in deleting private key; added deletion after error in writing the private key on keypair creation, for atomicity of the 'create' operation