The US invaded Afghanistan because that is where Al Qaeda had based themselves. OBL was in Afghanistan and he was linked to the hijackers as was Al Qaeda. The circumstances of the situation made it impossible for there not to be an invasion of Afghanistan. If it were not for 9/11 they would never have invaded.
Iraq, I dont know exactly. But GWB and Dick Cheney had some long standing grudge. Was a whole host of reasons. Oil is probably not far down the list.
TTP is the by product of 20 years of extremism and jihadi warfare going all the way back to the soviet invasion of Afghanistan. This coupled with Pakistans own slide towards extremism going back to its birth but being accelerated by Zia and given teeth by the Mujahideen movement funded by the CIA and Saudis.
The Taliban were created, to what degree I dont know, by Pakistan, to exert its influence over the country to stave off Indian influence, by creating a Pashtun dominated proxy group with hardline religious views that would inherently be closer to Muslim Pakistan then Hindu India. They didnt just pop up over night. After the invasion the Taliban dispersed, with most retuning to FATA and setting up their own factions, aided perhaps by local terrorist organizations already present in Pak and perhaps partly supported by the state.
The groups in question gained strength because they were greedy for power and started taking it by force. There main threat is the Pakistani state, which also supported the enemy of the Taliban along the main jihadi front in Afghanistan, hence a natural target. If you cant kill your enemy, kill his supporters, hence the Pakistani state became a target.
The Taliban is comprised of people who have been fighting in wars for the past 20 plus years. First the Russians then the Northern Alliance. So they are experienced. These same old fighters train a new generation of fighters with help of money they get through donations, the drug trade, ransom, and god only knows what else. Yes they have money… Also, since the state of Pakistan at the very least facilitated the Talibans rise, its not unreasonable that they would have also trained them in military tactics. Also, Pashtuns are known throughout history as exceptional fighters. If you read up on the wars between the british and the tribal Pashtuns, you would read of the excellent marksmanship of the Pashtun snipers.
I dont know how sophisticated their weapons are, and i doubt you do either. At the end of the day, you dont need a sophisticated weapon you just need one that points and shoots.
That they have such good intelligence and such capability with such limited resources, speaks volumes for how adept they are and how inept the Pakistan security establishment is.
They havent all escaped drones. The head of the TTP, the first Mehsud, he died by drone attack. As have many others. That they havent all died just tells us they are smart enough to know how to avoid them.
Just because YOU dont understand something, doesnt mean there has be a huge conspiracy involved.