Wrote first version of socket code (untested).  Also changed file names to avoid possible conflict with Linux socket headers.