Support Unix domain sockets
Refactor create_connection a little