[backend] implement first draft of buildenv based building

Both in worker and repserver. Needs a patched osc, of course...