Do not refire connect and setup events on doc ready if Sync already connected and ready. Fix #48.