Quantum dot spins and microcavities for quantum information processing