Introduce disable-wallet / no-wallet mode (rebased)

Rebased version of #2901
@wtogami