Refactoring asio/pipe.py module. Handle EALREADY properly.

Combined base implementation of Unix and TCP sockets. Family-specific
differences are moved in a separate classes that implement configuring
socket depending on its type.