Adds support for batching requests.
Merge pull request #3 from johncoder/master

Adds support for batching requests.