flexible localstore and keyring fix

* add a parameter to define the itemname in the localstore
* fix an error in the keyring for select an key bei email