gstree adds state saving w/localstorage

and comments and clean up unused stuff