Change the way pgp and backed ia are associated.

Also changed it so that upon login does not wipe out and previous gpg
keys
Fixed search and found a bug in store that caused index out of bounds
exception
Fixed to use dicts.

Fixed to use the proper return format.

Fixed to store entries in redis properly.
Refactored login and storage logic into a separate function.

Also fixed search to return last matched record in the list. (this isn't
phrased correctly though)
Remove redundant returns
Merge pull request #1 from irdan/fix_login_upload

Remove redundant returns