New texture manager with lazy uploading of textures. Texture images are stored in the textures until upload.
Adapted to changes in texture manager.
Tests for texture manager
More test cases for texture manager
Add more test cases for texture manager.