state: add account switch/remove endpoints and login flow
authored by
lewis.moe
and committed by
tangled.org
cea9f509
d47f275f