Add support for exporting to JSON with the "-t json" target flag

I've implemented a simple JSON output format for tw files compiled with the `-t json` target flag. It does not yet support merging.