sorting versions better and calculating traffic without rounding errors
Allow 0.5% step for DNS distributions and improved rounding error compensations

`PERCENT_RESOLUTION` defines the number of weight units in a percent
point for DNS traffic setting. The maximum number is 2.5 and is not set
to 2.0 allowing setting 0.5% step for the traffic distribution.