Add support for adaptive formats

This change enables downloading of adaptive (aka DASH) streams (e.g. 1080p video).