Chiral algebras in physics and mathematics