Add support to unix socket connections to servers

This patch adds support to unix socket connections to servers with minimal code change