Add support for adaptive formats

This change enables downloading of adaptive (aka DASH) streams (e.g. 1080p video).
Fix line-alignment errors introduced in 934c423
Merge pull request #40 from fbrozovic/master

Add support for adaptive formats