[textures] expose the texture cache to JSON-RPC with GetTextures/RemoveTexture