stable indexes and mostly working everything else

probably still a few bugs (definitely some in the tree view I think), but indexing is more stable, rerooting works normally (saves, updates properties and tree root indexes), and the list of imported studies does not include the studies that are only indexed but have not been imported.