[Alarm] Initialize the "period" to null if its value is not set.
This can ensure the "period" be enumerable.
BUG=XWALK-2079
[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