Use patched version of TermsFilter to prevent using wrong cached results

See LUCENE-5502

Closes #5363
Corrected issue with throttle type setting not respected upon updates
[TESTS] Fix incorrect discovery options.
[DOCS] Added spring data elasticsearch integration
For unicast zen discovery don't overwrite a ping response for a node if the previous ping response has a set master and the current response hasn't.

Per single main ping request we maintain the received ping response per node. Each node level ping response is mapped into that. If from a previous node level ping request the response has already been set for a node, it will be overwritten. We give higher value to the latest response. This change makes sure that this doesn't happen if the previous response has a set master and the current response hasn't a set master. Otherwise a node will lose the fact that another node has elected itself as master, the result of that would be that there would multiple master nodes in a single cluster.

Closes #5413
[TESTS] Added AwaitsFix
[TEST] pre check download service working

Seen during CI tests, it could appears that the download service is not available for any reason.

This fix in test will check before each test which requires an internet access (annotated with @Network) that the download service we are testing is still working.

It won't fail the test but will mark the test as `Ignored` in case of failure.
(cherry picked from commit 2af19a4)
(cherry picked from commit 099142c)
(cherry picked from commit 56b6b85)
Enforce query instance checking before it wrapper as a filter

We have the default QueryWrapperFilter as well as our custom one while
our wrapper is explicitly marked as no_cache such that it will never
be included in a cache. This was not consistenly used and caused several
problems during tests where p/c related queries were used as filters
and ended up in the cache. This commit adds the QueryWrapperFilter
ctor to the forbidden APIs to enforce the query instance checks.
Improve exception handling in HttpDownloadHelper
[DOCS] Documented gateway.local.auto_import_dangled

Relates to #4996
Count latch down if sendsPing throws exception

if the async sendPingsHandler throws an unexpected exception the
corresponding latch is never counted down. This might only happen
during node shutdown but can still cause starvation or test failures.
[Test] IndexLifecycleActionTests - set minimum master node earlier to make sure it's in effect when needed.
[Test] FullRollingRestartTests - correctly setting minimum_master_nodes

Also added a ElasticsearchIntegrationTest.setMinimumMasterNodes() helper function.
[Tests] QuorumLocalGatewayTests - Set mini_master_nodes earlier to make sure it has effect.  ClusterServiceTests - remove a thread.sleep in favor of awaitBusy
[DOCS] Reword clear-scroll sentence
[DOCS] Fixing contributing.md indentation

Add a whitespace to make these separate paragraphs inside of a list.
Move systemd files from /etc to /usr/lib

As documented in systemd's manual pages tmpfiles.d(5) and systemd.unit(5),
a package should install its default configuration in /usr/lib, which can
be overriden by system administrators in /etc.

New locations in the rpm:
/usr/lib/systemd/system/elasticsearch.service
/usr/lib/tmpfiles.d/elasticsearch.conf
[TEST] Print tests.jvms and tests.client.ratio if set

We need to print options that can modify stream of events we need
to print it otherwise a seed might not reproduce the failure in
the tests.
[TEST] pre check download service working

Seen during CI tests, it could appears that the download service is not available for any reason.

This fix in test will check before each test which requires an internet access (annotated with @Network) that the download service we are testing is still working.

It won't fail the test but will mark the test as `Ignored` in case of failure.
(cherry picked from commit 8dfdc6f)
Geo Point Fieldmapper: Allow distance for geohash precision

Even though mentioned differently in the docs, the geohash precision needed to
be an integer instead of a DistanceUnit.

Closes #5448