give wallet tree utils their own file
make the wallet data structure JSON friendly