WIP Ref/storage keys

Wallets will be stored as a single key (wallet_id::data) containing all attributes. Wallet names are still stored separately.
Closes #1267