Closes #3507220 Extending authentication type to include the option of using ApiKey as authentication against your elasticsearch server.