Moved the folder metadata generation to SoObject and added 'tag based' sync'ing support for IMAP