Handle multipe valid secret keys better
* src/keycache.cpp (compareSkeys): New. (setPgpKeySecret, setSmimeKeySecret): Use it.
This checks for the capabilities of keys and then
orders them to resolve multiple valid signing keys automatically.
Fixes internal encryption with a specific cert only for
sign and one for encrypt.