Sync update now bumps Sequence before and after atom updates.

This ensures that after all atom updates are saved, the current sequence will always be larger than the highest atom sequence.  This way up-to-date clients will not receive any previously received atoms.