Fix setUV and setUV2 to refer to correct variables
Merge pull request #308 from NVIDIA/setUV-fix

Fix setUV and setUV2 to refer to correct variables
Move functions from closure to prototype so they will be better optimized

Being able to reuse the same member function object for all objects makes
a big difference on current V8. The total effect from changing just these
three bottleneck functions is about 5-10% less CPU usage on the ARM
platform. This seems to be worth losing a little bit of encapsulation.
Merge pull request #309 from NVIDIA/js-optimization

Move functions from closure to prototype so they will be better optimized
Build downloads
- also removed duplicate code in flags.js,
- and rebuilt api,
- and ammended .gitignore to exlcude node_modules.
Merge pull request #312 from nat-n/V3.1

#311 SceneJS_Display._ambientColor now supports an alpha value
Fix rebuilding programs after context loss

Uniform state needs to be reinitialized after context loss occurs.

Fixes a regression introduced by commit "Cache shader program uniform
state to avoid redundant uniform1i calls".
Merge pull request #313 from NVIDIA/fix-rebuilding-programs

Fix rebuilding programs after context loss