E0d/es cluster

PR to pull in a branch of @feanil 's branch with:

1. simpler template logic.
2. actual installation of the template.
3. support for /etc/default config
4. minor refactoring
5. ES upgrade to the latest production version