Update for Typescript 0.9

Updated all scripts so that everything will compile using Typescript
0.9.x