refactor

detached the api from the typescript.js compilation output. introduced
the binder.ts file that manages loading both the typescript.js and
typescript.api.js files.

additional updates to the build code.