Dynamic template directory

Implements dinamyc templates settings
See #2300 for feature proposal

This implementation allows to define a directory which contains a list of templates.
An (optional) `template.conf` file in said directory allows to define actual templates and template names.