CWebClientSocket: Replace new variables and deduplicate code a little.

Closes #134