Stub out socket calls.

Looks like I can wrap all the network functionality via overriding socket
calls.