move and consolidate code for register and manage accounts.
move and consolidate code for register and manage accounts.

jonkb/TicTrainer-node,jonkb/TicTrainer-node,jonkb/TicTrainer-node,jonkb/TicTrainer-node