DownloadProvider: fix secondary storage support

Previous attempt at "add to support download into sdcard storage"
was a steaming pile of feces. This is re-implementation
of that commit with better aroma and behavior.

Change-Id: If9aba4c73b24d052b0379d624302ffda03fdf8e4