Every 500th request prune a single old file from var/tmp and var/logs.
Might not be aggressive enough.  Fixes #2005.
Merge branch 'master' of github.com:gallery/gallery3