Config: template factory refactored from UI\Control

Template factory can now be injected, with working macros `{link}` & `{plink}`