Added some more tests, and supporting code.

Exported some missing constants.
Return values from bind(), connect(), send(), close().
Implement getsockopt(), setsockopt(), shutdown().
whitespace & misc tidying
Implement symbolInfo; tests for same; misc tidying
Implement symbol(); tests for same
implemented term(); tests for same
add send.js test, fix send bug
Merge pull request #9 from blowback/moretests

Added some more tests, and supporting code.