fix #750
wizard: ask for password earlier during restore
Rewrite accounts and transactions: store pubkeys instead of addresses in order to avoid unnecessary derivations.