Hierarchically controlled ecological life support systems