Improve transport logic. Closes #94 and fixes #151.
Merge pull request #152 from jharding/94-improve-transport-logic

Improve transport logic (support batch requests)