Superconductivity in hyperbolic spaces: Cayley trees, hyperbolic continuum, and BCS theory