Add basic support for nonblocking read
Merge branch 'master' of github.com:feeley/emscripten into incoming