Add typescript as a submodule

Signed-off-by: Saulo Vallory <me@saulovallory.com>
Complete refactoring

No more monkey patching! \o/
Now the TypeScript source is linked and transpiled with the packages code.

Signed-off-by: Saulo Vallory <me@saulovallory.com>