Es discovery module

This is all of vir's work on the ES discovery module that can be open sourced.

I'll do integration with the ingesters in another PR. This PR will need to be updated in order to work with the new configuration stuff in the http maven modules, but there shouldn't be any major changes.