From Chern-Simons theory to quantum groups by factorization algebras