Quantum measurement and real-time feedback with a spin-register in diamond