Merge pull request #15 from jimpurbrick/master

Add support for NGClientListeners and win32 support.
Merge pull request #16 from jimpurbrick/master

Use fixed size thread pool in NGInputStream, fix race condition and simplify synchronization.
Merge pull request #18 from jimpurbrick/master

Add support for NGHeartbeatListeners and configurable heartbeat timeout
Merge pull request #19 from jimpurbrick/master

Test send interval after every select call, rather than relying on timeo...
Merge pull request #22 from jimpurbrick/master

Close NGInputStream before sending exit code to client to avoid races. Allow NGClientListeners to throw InterruptedExceptions to interrupt main thread. Don't call clientDisconnected handlers during normal shutdown.
Allow java classes to close stdout/stderr

When the client calls a class, where either stdout or stderr is closed
the socket connection to the client is closed and no further data is
sent. This includes data transmitted over the other stream and exit
codes.
Merge pull request #25 from vhristov/for-issue23

Allow java classes to close stdout/stderr