Fix for bulk indexing error (#20) plus TTL addition

This has unit tests and addresses #20.  

Also includes:
* a (unfortunate) breaking api change for adding ttl parameter to bulk indexing.   
* exposing the GlobalBulkIndexor