Update to ESRI api 3.8, npm packages and related build system tweaks.