As the crisis mounts in Iraq, the US and Iran have the opportunity to put aside their differences and work together to counter a Sunni Islamist insurgency.