Added config option for elasticsearch protocol

Added config option for specifying the elasticsearch service's protocol.

E.g. My instance is behind HTTPS which allows me to switch it.