Typescript compilation

I'd strongly recommend depending on typescript 1.0.1, because it has quite many bugs fixed.