Small refactor to batch api.
Fix batch payloads.
Merge pull request #19 from sendwithus/batch-api-tweaks

Small refactor to batch api.