Inhomogeneous Superconductors: Granular and Quantum Effects