Major restructuring of configuration template related classses.