Change wallet loading code to access settings through the Chain interface instead of writing settings.json directly. This is for running wallet and node in separate processes, since multiprocess code wouldn’t easily work with different processes updating the same file.
This PR is part of the process separation project. The commit was first part of larger PR #10102.