Adds resizeTextureUpToPowerOf2 option for osgjs pseudo-loader

If the value passed in 0, then no texture resize will occur at all.
Note that this changes the default behavior of the plugin as it previously
forced textures to be 2^n x 2^m with max(n,m) <= 11.
Fixes some compiler warnings

* Removes dead code
* Removes unused variables