Synthesis and Rearrangements of Imidazolo- and Triazolo-Diazines