Pd-Catalyzed Intramolecular C—N Bond Cleavage, 1,4-Migration, sp3 C—H Activation, and Heck Reaction: Four Controllable Diverse Pathways Depending on the Judicious Choice of the Base and Ligand.