Support read/write on socket file descriptors.

Add test_websockets_bi_fileops to test using read and write instead
of recv and send respectively. Uses same source files with
USE_FILE_OPS define.
Shared file-descriptor nums for files and sockets.

Also, add FS.createFileHandle(stream) and FS.removeFileHandle
functions for adding to and removing from the streams/file-descriptor
table.
Merge branch 'incoming' of github.com:kanaka/emscripten into incoming
leave low fds for sockets
check more carefully if a stream is a socket