Move sync code from couch_user to commcare_user.