Adding separate Dom.ts file.
Added support for `in`

  - Also some ambient defs
Cleaning up tcCall and consCall.