Energy and Nutrient Flow in Communities