Improved Elasticsearch configuration

Fixed it to bring in environment-specific variables.
Added ping timeout variable in those files.
This adds the requirement that you copy one of the .dist files
into place in the elasticsearch vars directory.