Updated packages and allowing configuration of unauthorized certificates.

* Updated package.json with latest versions.  Mainly support for latest version of nodejs.
* Added rejectInvalidCertificates option to allow self signed certificates, if required.
* Updated tests for new parameter.