Merge pull request #1 from datasift/feature/dsp_386

Feature/dsp 386
switch to cleaner swap and pop version
Merge pull request #2 from datasift/feature/pollerfeatures

Feature/pollerfeatures
whitespace
C++11 syntax
removed pointless 'flush' option from client
further improvements to client for streaming

add --exit-when-no-input option;
add --ignore-zeroes option;
fix sending of accumulated message buffer;
display end-of-output message