[Download] reimplement function _checkDownloadParamters

* allow attibute of callback don't exist
[Download] fix bug on type of size

* the totalsize of download should be a number not a string
[Download] add some urls into cache

* In order to pass QA's test, we add some urls from tests set to
  download cache
[Download] reimplement setListener() function
[Download] fix bug on cancel() function

* The state to cancel can be Downloading or Paused. The root casue
  of issue is that it ignore Paused state.
Merge pull request #267 from xuzhang/dev

fix bug TDIS-5981