Maximum Entropy For Resource Allocation: A Quantitative Theory Of Species Coexistence And Population Demographics