Periodically clean up broken files

Currently there are thousands of zero length files in ./public/upload dir.
This patch adds a function that will be run every 5 minutes on ./public/upload dir. It will find all files less then 1024 bytes in size and older then one minute and delete them.