States and invariant maps of operator algebras