Refactor and add federated + parameter server + central peer sampling
This PR merges the refactoring, removes some unnecessary code, and adds Elisabeth's contributions.
This PR merges the refactoring, removes some unnecessary code, and adds Elisabeth's contributions.