Gauge theories in anti-selfdual variables