This PR is a subset of the work done in the context of #13100. This change consists in extracting from the application class the code that manages the wallet models.
The role of the WalletController
instance is to coordinate wallet operations and the window.