Use pagination in the json serialization migration

So, this migration ran fine locally for me, but I just tried to run it on my production database (~86,000 events right now) and it just died.

This goes over the rows in pages of 1000.