Cleanup and base for compiler 3.0. Start of testing framework.