Mechanism-Guided Development of Transition-Metal-Catalyzed C-N Bond-Forming Reactions Using Dioxazolones as the Versatile Amidating Source.