fileid versioning; download files only when necessary

Delete files whose fileid is not in the updates anymore.
This way the cache is kept clean.
This holds for folders and resources.
Download the files only when there is no cached version
available for use. This way the app is faster and the
data traffic is minimized.