Renamed TextureManager to TextureFactory. Some cleanup.