Added some more logging
Added sync_flags to importing

New function to let you sync a list of flags more efficiently
Use importing.sync_flags for flags
removed old sync_inbox function
Fixed flag syncing, but still slow