Minor code cleanups-
Handle startup network errors correctly.
Enable and disable syncing also in the folder objects.