Initial commit of new tool/configure.js build chain for core