implement resizer as a duplex stream with proper backpressure handling
try to avoid memory leaks
cleanup comments
move setup in constructor to avoid problems with 0-length images
change how drain is handled
use nextTick
back using bytechunker
Merge pull request #2 from paolochiodi/duplex

Move to duplex stream and try to avoid memory leaks