Fix for issue #400. The error object is used for different type of errors, and we are not deleting its records every time we run the batch (as we did before). Thus we need to get the actual failures from the DatabaseResult instead of count the records in the Error object.
Merge dev into feature/400-negative-batch-success
Merge dev into feature/400-negative-batch-success
Merge dev into feature/400-negative-batch-success
Merge dev into feature/400-negative-batch-success
Merge dev into feature/400-negative-batch-success
Merge pull request #479 from SalesforceFoundation/feature/400-negative-batch-success

Fix for issue #400. The error object is used for different type of error...
Merge dev into feature/416-depend-on-beta-pkg