WIP on refactoring codegen interface

git-svn-id: https://svn.mcs.anl.gov/repos/exm/sfw/stc/trunk@12735 dc4e9af1-7f46-4ead-bba6-71afc04862de