Spin-photon and spin-spin interactions with quantum dots and wells for quantum information processing