update deps
use dependency injection pattern to support buffers with binary or text
Merge pull request #14 from dominictarr/master

support binary buffers with non-binary transports