Wrap textures in Texture objects.

This will help if we ever want to port to Direct3D and also improves safety
because it ensures textures are cleaned up properly.
Merge pull request #15 from pcwalton/texture-wrapper

Wrap textures in Texture objects.