CLOUD-252 implemented skeleton of template system

in the next pull