function to create new ctemplate object
clear all cached template files.
reload template files if the source files changed.