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
enhance tests based on current documentation
reformat, minor restructure
add missing methods
use 'interface' for things that shouldn't be constructed by hand
convert Connection to an interface so EventEmitter's methods don't need to be listed
validate's error parameter should be optional
Merge pull request #2 from varju/master

Miscellaneous cleanup and enhancements