Write command zero copy

This is my proposed solution to #18 . See original issue for details.

I think the first commit should be cherry picked either way.