Allow a tool dependency to be uninstalled from Galaxy only if it is in an error state.  Allow an installed repository to be uninstalled from Galaxy only if it has no dependent repositories and none of its contents are dependencies of other repository contents.
UI: Fix nested history bug