Added utility build-model.js for constructing models from previously recorded traces.