publish in chunks
when publishing a larger list of items, like the complete TGRep, we may get timeouts for the requests at publish.html and we will fire as many requests as we have items in the list. we should consider to use chunks of 10 (or any customizable number) to not overload the database and to maintain callbacks at publish.html.