fix for self-signed certs

Added ability to set secureProtocol, and allowed setting agent = false as well as rejectUnauthorized = false.

Summary
	modified:   lib/index.js