Bulk inserts

doInsertRecord can now take not just a single document, but an array of documents. Also, if an _id is already provided (in the array docs or in the single doc) it won't be overwritten. Added tests for doInsertRecord.