add checks to installed keys; general improvements

* Made some actions more flexible
* Enabled colon listing(--with-colons) support to list-keys
* Added checks for expired, invalid and revoked keys
* More checks about keys capabilities