I added all the infrastructure needed in this commit: https://github.com/elasticsearch/elasticsearch/commit/3113203e9e98d7fc6288ca922c28f09c6930d208

take a look at it and if you have questions lemme know!