Handle resource updates & use modx cache folder

I moved the statcache folder to modx core/cache folder (I think this makes sense).

I also implemented some basic functionality to handle updates of a resource (delete the static file in the cache). This code might be improved before you build a new package version.