This seems is a power grab by their media mostly headed by Sondhi Limthongkul. The bases of this power grab is two things first the prime Minister Thaksin Shinawatra was extremely corrupt. Then there were attacks on Buddhist shrines by Muslims and there has been of thousands murdered by Muslim extremist.
To give you an idea of Sondhis mentality which he is a graduate of UCLA said after one of the attacks of a shrine said that Thaksin (the prime minister) hired the attacker through dark force and Black-Magic shamans.
Anyway Sondhi boonyaratkalin seems to be a good General (even know he is Muslim) and did this because of the inaction by the prime minister to deal with the extremist Muslims at least that is what he says.
I guess time will only tell.