CMS-2192 Templates API design.
Added ControllerFactory, so Controller receives the resolved source ready to be executed.