Updated to support the ts 0.9.0-1 compiler.

Node typings are out of date.
This change also uses the typings from the typescript version, so they are't part of this code base.