Marginal Methods for the Design and Analysis of Cluster Randomized Trials and Related Studies