Rewrote Notebook server backend code so that worksheet sync happens only on server switch.