Replicate Statistics in Batches

With self-healing and optimized batch sizes.  Also includes a job to rebuild warehouse indexes.