Moved common raytracer backend dependencies into a context struct.