WIP 1: factor build-manager and job-manager out of build-job-manager