Rewrite AI BaseBuilder and add tech levels to TD.

The main blocker for tech levels was that they exposed the extreme dumbness of our AI base building.

This rewrites that part of the AI to be more sensible (there are still a couple of hacks carried over, and this doesn't touch any of the non-building AI bogosity), and implements four tech levels for TD:

* Low (everything before comm. center).
* Medium (everything before advanced comm. / temple).
* No Powers (everything except airstrike, nuke, ion cannon).
* Unrestricted (everything).

Fixes the bulk of #5416.
Note: there is none in Dune 2000 where we are often not limited by radius, but terrain which can also be a square with one side being much longer than the other and not circular.