Added pub/private key storage and selection in preferences (#2)