Mipmap support for compressed textures

Initial commit for mipmapping support on ETC1 textures.
Fix breaking changes from changes in TextureManager
Fixed a typo in the mipmap chaining code
Merge pull request #475 from AndrewJo/master

Mipmapping support for compressed textures