add an insecureAgent when maxSockets is set, closes #1512

Turns out the issue is if you pass an agent to `https.request` it ignore the `rejectUnauthorized` setting, so you need an agent that has `rejectUnauthorized` set.