Update imap service to use the new sync service. The new sync state is stored as simple file on disk to avoid contention with concurrent vault writes.
Convert ServerManger into a standalone service so that it can become a self contained module.