Spruce up priming view logic in import
Spruce up priming view logic in import

Prevent back to back priming (giant slowdown) and use actual changes to
data to decide when we've processed enough entries to fire the cleanup

qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,SEL-Columbia/commcare-hq,qedsoftware/commcare-hq,puttarajubr/commcare-hq,dimagi/commcare-hq,SEL-Columbia/commcare-hq,qedsoftware/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,gmimano/commcaretest,qedsoftware/commcare-hq,dimagi/commcare-hq,gmimano/commcaretest,gmimano/commcaretest,puttarajubr/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,SEL-Columbia/commcare-hq