Interface TCPSocket rewritten to be based on the Streams API. (UDP and TCPServer interfaces still not rewritten).
Fixes according to comments from Domenic.
Misc updates for TCPSocket based on Streams API
More corrections based on Domenic's comments.
Fixed socket closing
Merge pull request #63 from ClaesNilsson/gh-pages

Interface TCPSocket rewritten to be based on the Streams API.