Updated gyp, added socket unit test.

- Updated gyp for Windows.
- Removed socket_unix.cpp file to avoid code duplication.
- Added socket unit test.
- Added reporting for Session errors.