Add SocketWrapper; implement sending
Fix SocketWrapper.send
Rewrite most of SocketWrapper and friends