On-Chip Cavity Studies Of Spin Systems And Nonlinear Superconducting Phenomena For Quantum Computing Applications