Add unit tests

Introduce unit tests for creating a socket and i/o.
The unit tests should be run in a chrome packaged app.
before running the packaged app, run ./test.sh, which will
open a tcp echo server and browserify net-test.js
Add exceptions to missing API to prevent silent errors
Add unit tests for missing API
Add missing API for socket.address()
Add 'patches welcome'
Change name of test
Add .jshintrc
Add unit test for end