Added a types.h public header and closing streams if sender crashes.

Change-Id: Idd1a2046ff790a734673b06cf945d85a0db8ac94
Minor changes to the Stream API

Change-Id: I26642a867d284b1babdd0dea0d99191c7a5c78fa
Merge pull request #35 from rdumusc/qprocess

Added a types.h public header and closing streams if sender crashes.