Fix string-quoting checks. Was breaking team joining etc.

Unfortunately, our code has a mix of (source, dest[, length]) and (dest[,
length], source) in function prototypes. We need to fix this, or this kind
of problem is likely to occur again. My preference is for the latter, giving
consistency with the likes of the standard C library: least surprise and all
that.
Add two missing buffer validation checks for string quoting.
Start both teams with a specific number of build points
Reduce initial mine rate to give ~20 BP/min/rgs
Don't heal if you can't afford it.
Drills and Leeches cost 4 BP
Add VisTest functions to check if a 3D-point is visible in the current view
and use it to implement light flare entities.

The old trace-based code used the bounding box instead of the actual model
to cull flares.
Show mine rate/min in the health bar of the rgs.

Patch by Viech.
The mine rate of two nearby RGS correlates to the size of the union of their areas of effect.

If more than two RGS intersect, this is just an approximation that tends to punish cluttering of RGS.
Double RGS range to compensate for new distance based rate adjustment approach.
Merge branch 'master' into resources
Allow marked buildables in another power zone to be replaced, prefer those in the same zone.
Merge branch 'resources' into bots+resources