Dynamical systems and operator algebras