Updated wallet and RPC to support accounts