Wallet v1 & v2 login flow (closes #838, closes #836, closes #835), setting up TOTP (closes #839)