Simple promise wrapper for http.request and https.request.