add proper template rendering, 
prerequisite for optional context/environment for subprocesses
prerequisite for optional cache clearing for subprocesses
refs #305