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


------------

This gets things working on 2.4 and 2.6.  What do you think of the approach?