Go to key generation (which is unimplemented) in the case where there are keys, but they're all invalid
Added capabilities discovery and workaround for bug in GnuPG < 2.1
Fixed #430. This is also a partial fix for #408.