Add cleanup routine to synced folder plugin implementation
Merge pull request #2561 from emyl/synced-folder-cleanup-v2

core: Enhance the synced folder plugin implementation with a cleanup routine