Restore texture api
Merge pull request #6 from shama/textureapi

Restore texture api: loadTextures and applyTextures