Let ∠CAB=α, ∠ABC=β, ∠BCA=γ. We start by showing that A, B, I1 and I2 are concyclic. Since AI1 and BI2 bisect ∠CAB and ∠ABC, their extensions beyond I1 and I2 meet at the incenter I of the triangle. The points E and F are on the circle with diameter BC, so ∠AEF=∠ABC and ∠AFE=∠ACB. Hence the triangles AEF and ABC are similar with ratio of similitude ABAE=cosα. Because I1 and I are their incenters, we obtain I1A=IAcosα and II1=IA−I1A=2IAsin22α. By symmetry II2=2IBsin22β. The law of sines in the triangle ABI gives IAsin2α=IBsin2β. Hence
II1⋅IA=2(IAsin2α)2=2(IBsin2β)2=II2⋅IB.
Therefore A, B, I1 and I2 are concyclic, as claimed.

In addition II1⋅IA=II2⋅IB implies that I has the same power with respect to the circles (ACI1), (BCI2) and (ABI1I2). Then CI is the radical axis of (ACI1) and (BCI2); in particular CI is perpendicular to the line of centers O1O2.
Now it suffices to prove that CI⊥I1I2. Let CI meet I1I2 at Q, then it is enough to check that ∠II1Q+∠I1IQ=90∘. Since ∠I1IQ is external for the triangle ACI, we have
∠II1Q+∠I1IQ=∠II1Q+(∠ACI+∠CAI)=∠II1I2+∠ACI+∠CAI.
It remains to note that ∠II1I2=2β from the cyclic quadrilateral ABI1I2, and ∠ACI=2γ, ∠CAI=2α. Therefore ∠II1Q+∠I1IQ=2α+2β+2γ=90∘, completing the proof.