The chemistry of amine-azide interconversion: catalytic diazotransfer and regioselective azide reduction.