ugtrain: introduce pointer following support

This patch adds the following:
* new pointer memory definition with name and size
* target pointer pointing to that pointer memory
* pointer state for waiting for the pointer to be settled
* own config value and active config list per pointer memory
* following of pointers "once" or "always"

This patch adds the following parts:
* parsing ("ptrmemstart", "ptrmemend", type "p")
* dynamic value allocation for pointer memory
* dumping (p<ptr_nr>_<obj_id>.dump)
* processing (following the pointer with type "p")
* output (with offset from pointer memory)

Limitations:
* allowing pointers only from within dynamic memory
* not allowing nested pointers

Example: Warzone 2100 (to get Structure type and functionality)
ugtrain: introduce check from reference

This patch enables us to use a name of a previously parsed value
instead of an address in hex for a check. It also improves the
value name parsing as we don't have to handle the name type for
all calls to that function.
examples: warzone2100: 32-bit: research and build droids faster

Let's use the cool new features: pointer-to-heap discovery,
calloc() hooking, pointer following and checks with a config value
reference.

Inspired by "RusHACK Super Cheat Warzone 2100":
http://www.youtube.com/watch?v=RHCI7pEJB9g

They cheat:
RESEARCH_FACILITY.researchPoints, FACTORY.productionOutput
... so do we to research and build faster.

We also cheat:
RESEARCH_FACILITY.powerAccrued, FACTORY.powerAccrued,
FACTORY.timeToBuild
... to be even faster than that. :-p

Our trainer source and trainer configs are open! We even build
Structures faster as we cheat STRUCTURE.currentBuildPts directly.
They cheat DROID.actionPoints for Droid type DROID_CONSTRUCT
instead. We fight with indestructible hero Droids. Their Droids
take damage and have no experience (shooting less precisely).

This patch increases the body points of Droids and Structures even
more (from 2,000 to 10,000) as Droids with a *PLASMA GUN* tend to
kill themselves on short distance. ;-)