moved build to grunt-ts + webpack

two-stage build
- first compile TypeScript to commonJS (slow)
- then bundle to various forms (fast)

dropped browserify and other test stuff
added grunt-githooks
tuned code indent