Coup d'etat is in dna of army. They think they are superior to people and qualified to manage whole country. They are more interested in engineering the society than protecting the country. Sick ideology which isn't shared by %80 of country has motivated them making coup 4 times in 50 years, hanging a prime minister and two of ministers without reason and killing, torturing hundreds of thousands.
Things have started change with AK Party. This is called normalization. A mass cleansing. Gladio-like organization called ergenekon have been exposed in 2007. They have killed a high judge, Armenian journalist Hrant Dink, a priest in Trabzon, a few Christian missionaries in south east, bombed a book store.. They were all false flag attacks to put pressure on Muslims and current government. For example that lawyer guy killed the high judge claimed to be a Muslim who did this because of court's ideology which support banning hijab. But when he is caught, it is revealed that the guy was a drinker who is in contact with retired soldiers. There are hundreds of voice recordings, official military documents to prove ridiculous amount of dirty work.
Army leadership used the resignation card to save their buddies in prison but it didn't work. Situation has turn to normal as new leadership appointed immediately.
This link can answer much of your questions.
http://www.todayszaman.com/news-252182-turkey-digs-up-its-shadowy-past-for-a-brighter-future.html