Fix CirrusSearch dependencies

- make sure JDK is available
- make sure elasticsearch service is running

Not the nicest (does not detect JDK from a different source,
does not stop the service when CirrusSearch is removed) but works.

Bug: 57543
Change-Id: I453bb5089bdba7b8a1a38f08dde49fb55e0f0a4c