Updated util classes in com package

- EventOutputStream no overrides close, which will add a null event
- EventToStreamAdapter closes the output stream when handed a null event
- Added tests
EventInputStream no longer puts poison onto stream

When a NullEvent is handled, EOF is registered as before, but
the event is not put onto the stream.
Added EventInputStreamTest.