Issue 2731 folder fields not updated in remote publishing

Fixes issue 2731 - also fixes the remote publishing of folders that do not contain content.  Also removed folders from cache when remotely published.