Tensor Categories and Endomorphisms of von Neumann Algebras