Added unix socket support and a test for it.

Take this pr with a grain of salt. Maybe worth holding off on.