add reference between batches and tasks
add failure counter
add rake task to roll back failing tasks
improve control of indexing retries
disable recursive batch approval