reorg code, js test harness

Split out ast and add a temporary js_of_ocaml test app.

Initially doing some analysis of typescript to get a better feel
for it's structure.