Homology, Hopf Algebras And Quantum Code Surgery