TemplateFactory: added possibility to create template without a Control

PR for #25.