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.


@remh Can you review? Let me know if something doesn't make sense.