Sync all units for a store in first sync

Set default value of last_sync_revision to null (fix #136)
Log update and sync for a store (fix #137)