Chain of events:
Russia and Turkey have an agreement to supply (put a strangle hold on) the EU with a natural gas pipeline.
Turkish airforce shoots dowm a Russian plane. ISIS rebels (US backed) capture and kills pilot. This strains relations and the pipeline deal is called off.
Turkey gets attacked by ISIS (US backed??) at Ankara airport.
Turkey the has a coup attempt but it is thwarted. Reports of Turkish airforce participation. Incirlik AB isolated, Commander is arrested.
Turkey claims coup is US/CIA backed and reports Russia provided them Intel prior to coup attempt.
Turkey and Russia announce normalization of relations.
Likely BS, but clears the record.