New feature, cleaning.

Features:
+ An option to disable the automatic anonymous function scope that the
library is inserted into.
+ Show/hide textures. When hidden, all textures turn white. Note - this
only affects the diffuse and emissive textures for SC2 models.

API:
+ setTexturesMode
+ getTexturesMode

Fixes:
+ Polygon mode applied to particle emitters type 1.

Lot's of cleaning and code restructuring.