Fix memory leake and add benchmark

The benchmark measures individual item latency which on my MBP was about
0.2ms avg over 1000 items.
Fix for_each module for older node versions

In some node versions, readline is broken and will send multiple or
partial lines through as one line. This is a more explicit solution.