Elasticsearch lib: extract Jest into its own (lib)

Separate the jest libraries or jars from the elasticsearch one. Do so
since Jest's Elasticsearch REST client nature totally differs from
Elasticsearch's with its embedded Java API. The former is used for
production, while the latter is used by the tests.

Prepare the ground for potential further isolation (or decoupling) acts,
to pave the way for such deps version(s) bumping -eventually soon. This
shall be done while considering Lucene alongside and beyond, of course.

Remove the otherwise conflicting VERSION setting in lib for Jest. Solely
rely on the one Jest version already set in WORKSPACE.

Bug: Issue 6094
Change-Id: I4cfe9aa8b5b8e59c3fce3ad2b4bd9a5d746fa64f
diff --git a/lib/elasticsearch/BUILD b/lib/elasticsearch/BUILD
index 8dc4bce..418cb69 100644
--- a/lib/elasticsearch/BUILD
+++ b/lib/elasticsearch/BUILD
@@ -26,30 +26,6 @@
     ],
 )
 
-# Java REST client for Elasticsearch.
-VERSION = "0.1.7"
-
-java_library(
-    name = "jest-common",
-    data = ["//lib:LICENSE-Apache2.0"],
-    exports = ["@jest_common//jar"],
-)
-
-java_library(
-    name = "jest",
-    data = ["//lib:LICENSE-Apache2.0"],
-    exports = ["@jest//jar"],
-    runtime_deps = [
-        ":elasticsearch",
-        ":jest-common",
-        "//lib/commons:lang3",
-        "//lib/httpcomponents:httpasyncclient",
-        "//lib/httpcomponents:httpclient",
-        "//lib/httpcomponents:httpcore-nio",
-        "//lib/httpcomponents:httpcore-niossl",
-    ],
-)
-
 java_library(
     name = "compress-lzf",
     data = ["//lib:LICENSE-Apache2.0"],