TypeScript support

Support writing applications of some scale. Now it's too risky to go even above 100 lines..