Added texture manager.
The GL context now tries to init with OpenGL ES 3 and falls back to OpenGL ES 2 if 3 is not available.