Added ability to specify how many documents are inserted in one bulk cal...

I needed this feature to send up smaller chunks to ElasticSearch at a time, otherwise failed huge requests keep backing up and nothing ever gets sent. I don't know if other people would benefit from this, but it makes our infrastructure a lot more reliable. Let me know what changes I should make to get it up to snuff.