Quantum Criticality and Superconductivity in the Heavy Fermion Compound CeCoIn