Dynamic density and spin responses of a superfluid Fermi gas in the BCS-BEC crossover: Path integral formulation and pair fluctuation theory