Socketpath

Don't know why #17 wasn't merged, but here's my go at it. :D
Pretty much the same as @benmmurphy's version.