Add new ts2cs implementation (ongoing work), rewritten from scratch.

The new implementation is written in own typescript sources, not by patching
typescript sources itself.