Move resource limit tracking to its own class
Simplify interface for setting template resource limits
Remove commented code
Convert render output to strings in BlockBody
Reset resource consumption before each render
Use same template instance
Add test for render_length persisting between block bodies
Make render_length tests stricter
Merge pull request #492 from Shopify/resource-counting-perf

Resource counting perf