Command callbacks

Pretty straight forward. Just buffering the command writes into a single buffer so we can pass the callback into the single write. Should fix #44.

CC: @visionmedia