Tweaks so everything compiles on typescript 0.9.1-1, add watchTS script, add some references to attributes.ts