Endomorphisms and automorphisms of locally covariant quantum field theories