issuse0002: cancel download stuck

1. The download service call transfer api cancel sync, that will stuck, change it to async.
2. modify test to download file to tmp dir.
3. fix build script.

Change-Id: I1bf12aadf7c12f77b9ed841d738da6c2a456a2e5