Allow invalidation requests containing more than 1,000 files.

Currently EC2 doesn't allow you to have more than 1,000 requests per invalidation or have more than three invalidation requests running at once. This causes problems when you're dealing with large numbers of files.

This patch batches up the files into groups of 1,000 and only allows three to be submitted at once.