Refactor the tool shed's install and test framework in preparation for enhancements to test repositories of type tool_dependency_definition.