fix EventEmitter signatures for latest DefinitelyTyped node.d.ts
make signatures compatible with --noImplicitAny
improve supported exception types
add missing Document properties and methods
fix return type when constructing a new document
add missing Model properties and methods