Return results on change event
Return error XOR results to opts.complete
Fix error to bulkDocs write errors (still ugly but better)
Generate error and complete events
Call opts.complete on error and complete event.
Simplify changes mock in sync test
Simplify changes mock in test issue1175
Create listeners conditionally

Only create listeners to call opts.onChange and opts.complete if they
are functions.