Quantum control of single spins and single photons in diamond