Text this: Global bases for nonplanar loop integrands, generalized unitarity, and the double copy to all loop orders