Added junit tests for ProjectConfig and ProgramConfig; Reworked some of the configuration code along the way.