The wood bug is gone. You can delete a foundation and get back half the resources already deductedfor that building. In high lag games, you could do that many times, making a profit on your 3rd delete. It worked for stone, too.
The building/troop bug is more of a matter of faith. It used to work in AoE, but in RoR, most have never been able to get it to work, but some say they have. It is flaky and unrepeatable at best. It pretty much counts on selecting a second building, starting a new unit before the computer has enough time to update the units that can be built at that building. Maybe it would work on some of the slower machines, or if you were turtling (is that a word?) excessively. Like I said, I have never been able to do it.
Keep your stick on the ice.