Fix AgreementVM compiler errors, remove .map files, and uncontent *.d.ts's.
Remove lib-ext.js and convert establishments amd api model to *.d.ts file.