test box sample runner, lots of refactoring for standalone builds and our version of colddoc integration.