Add support for rejectUnauthorized in HTTP in config.

We're using a self-signed cert on our ES instances and were having some issues connecting. This PR adds an option to config which tells the http/https modules to allow unsigned certs. 

`rejectUnauthorized: false`