Remove duplicate download code associated with ApplicationCache

Also tighten up the ApplicationCache interface by hding the
constructor.

[#56447064]
Merge 56447064-code-climate to master

[#56447064]