Additional code cleanup, better logging and more minor fixes for the tool shed's install and test framework.