replaced https.request with cogent

This allows us to keep library more cleaner as we can use
`cogent.extend` to reuse request settings.