Add retry_on_conflict support to bulk api

Closes #623
Merge pull request #624 from nik9000/retry_bulk

Add retry_on_conflict support to bulk api