- select shouldn't return an error when the socket is valid, but disconnected
 - recv should return 0 once the socket has disconnected
 - send should set ENOTCONN once closed, and EAGAIN while connecting
 - updated tests to use O_NONBLOCK and better conform to coding standards
renamed socket tests
removed unused EMBED_SIDE define
Merge pull request #1477 from inolen/websocket_tests

misc socket-related library fixes and updated websocket tests