Better handling of external clusters in Elasticsearch check.

- Add `is_external` option to config which will skip the node hostname
  and local hostname check.
- Refactor hostname check into separate function for clarity.
- Remove unecessary closures for clarity.
Merge pull request #883 from DataDog/es-external-node

Better handling of external clusters in Elasticsearch check.