Bug 949518

Roll 'build' logic from v1 Node.js cart to v2 `control`.