Bulk API fixes

o We didn't manage the index offsetting correctly for bulk inserts.
o We didn't massage errors into writeErrors for legacy operations
Merge pull request #65 from hanumantmk/writeErrorFix

Bulk API fixes