Add entropy coder accounting support.

This generalizes the tool to record symbols and their contexts for doing
entropy coding optimization work. You add labels and then record symbols
with contexts for offline analysis.