Mappings which preserve idempotents, local automorphisms, and local derivations