Architectural changes necessary to support multiple wallets

This commit is a minimal restructuring necessary to support multiple wallets in the UI going forward. Please read multiwallet-qt.txt for details.