Updated TypeScript to 0.9.5 and Mocha to 1.15.1

- TypeScript.BatchCompiler is too inflexible. Use custom TypeScriptCompiler wrapper instead.
- Some more tweaks to satisfy the compiler.