[Download] Fix and complete Download API

Refactored Filesytem and Download API to share code
related to virtual roots.
Pass TCT tests.
Fix example.

BUG=XWALK-1070
No, because appid has been freed at this stage (by pkgmgrinfo_pkginfo_destroy_pkginfo).