Compositional Federated Learning: Applications in Distributionally Robust Averaging and Meta Learning