Conversion to std.socket

Convert from vendor socket implementation to Phobos std.socket.