Tools: Add a set of tools to convert a list of int to integer ranges.
Tools: Add a set of tools to convert a list of int to integer ranges.

This commit adds a couple of methods to convert a sequential list of integers
to a integer range as used in various places in the MPD protocol. This is a
win for when keeping sequence is unnecessary and integer ranges are possible.

hurzl/dmix,hurzl/dmix