Auto-frame template project scene & replace temp callocs with var len arrays.

Replace misc temp callocs with local variable length arrays. cocos3d Application
template project now automatically frame the scene by default.
PVR bone matrices in global coords, and FIX PVR lighting direction & attenuation.

PVR bone matrices now in global instead of eye space. Bone matrix semantics defined
for all spaces. PVR directional lighting semantic now negated. All matrix semantics
now accessed through visitor instead of state engine. Eliminate OGLES2 matrix stack
except for 2D. Lighting semantics retrieved from lights directly. Add scope to
program variables and populate uniforms according to scope. Vertex arrays auto-align
with texture orientation when adding textures during PFX loading. Fix bad access when
copying CC3TargettingRotator from CC3DirectionalRotator.