The deterministic evolution of general branching populations