Added tests and new logic for downloads

 to make sure the correct versions are selected, mostly fixing issues with priority being taken from feed

https://jira.dev.bbc.co.uk/browse/IPLAYER-18522