Broke controller action templates into to two sections.  A preperation and an execution (send) section.
In the process of adding genration of controllers to master slave template