Use same protocol for elasticsearch as everything else. Closes #1586

For users that run behind an SSL proxy.