Fix d3 Selection.node and update test

tsc d3-test.ts passes
node : readable stream pipe can be piped further closes #1030
breeze fix failing test
jsdeferred obvious fixes
threejs test fixes
ember fix tests and minor updates to definitions
Merge pull request #1032 from flxf/d3fix

d3 Fix Selection.node and update test
Add "ref" module
Add "ffi" module
Remove repeated info from "ffi" module
Add "ref-struct" module
Add "ref-union" module
Add "ref-array" module
Move Type interface from "ffi" module into "ref" module
Add info to README.md
Merge pull request #1033 from loyd/node-ffi

node-ffi (+ ref, ref-array, ref-struct and ref-union)