Working implementation

Buffers stdin to keep up with ZMap. This still needs performance and
large-scale testing (e.g. of a scan of the Internet)