Another round of refactoring in preparation for cilk backend. Resuse of recursive template rendering code.
Another round of refactoring in preparation for cilk backend. Resuse of recursive template rendering code.

mbdriscoll/asp-old,mbdriscoll/asp-old,mbdriscoll/asp-old,mbdriscoll/asp-old