Add unix socket support for SphinxAPI connection

I also replaced is_numeric() with ctype_digit() which is faster and more accurate when checking for a port number.

Feel free to edit the comment, I'm not a great writer, lol.