Ynamide-Mediated Thionoester and Dithioester Syntheses.