[Download]Implement download algorithm version 1

Signed-off-by: Ethan Shan <shan0xiao0xi@gmail.com>
[Download]Fix can't stop download thread bug

Signed-off-by: Ethan Shan <shan0xiao0xi@gmail.com>
Merge branch 'master' of https://github.com/ethanshan/CheeseCloud