De-duplicate account HTTP request and reply handling code
Also, delete replies so we don't leak them.
In a next step SSL error handling can move here so it doesn't affect the entire QNAM instance, and thus clears the way towards only having a single QNAM instance.