Substantial refactoring of the install and test framework to address a number of weaknesses.