move some code to initialize the wallet to the model.
Factor out functionalityfrom controllers/wallet to providers/wallet, controllers/gui_notify and controllers/connection_notify.