Support customizing elasticsearch environment and options

This would allow us to adjust elasticsearch runtime options (e.g. garbage collection flags) and environment variables (e.g. heap and paths).