Added POSIX socket functions and constants
Merge pull request #82 from zevv/socket

Added socket functions and test script