E0d/commoncluster

Adding common vars.
Template simplification following the ElasticSearch pattern.