Integrate previous changes. Speed up the segment loop by batch inserting into repair queue. Change-Id: Ib9f4962d91960d21bad298f7771345b0dd270276
Implement a buffer for inserting repair items into the queue in a batch. Part of https://github.com/storj/storj/issues/4727 Change-Id: I718472b2f2b1f4993c3d6f15c44923776407155a
Part of https://github.com/storj/storj/issues/4727 Change-Id: I1a9ad3b009f363e37f5e68e810074eecb7448db3