master: Add ChunkGoalCounters class

This commit adds a class which store chunk goal statistics and calculate
a combined goal - superposition of goals which can be used as e.g. a target
goal of the chunk shared between files with different goal.

Change-Id: If340ad189bbfa75da32a87b7448d28219812c2bb