recursively calculate app cpu and ram commitment

fixes https://jira.zenoss.com/browse/CC-73