Add batch updating of reinforcement records

Perform batch reinforcement updates for deleted groups and only deletes
groups if there are no more records to update for that group.
Added config items
the delete flag is explicitly checked now