[Bug 870178] fetch_appcache and related resource into cache/

if appcache is defined in manifest,
store .appcache and related resource into cache/

refactor: rename fetch_application to fetch_webapp