Implement ControlStack to generate sequential ID numbers, count children, etc
Merge branch 'master' into eligibility