Implemented streaming in Transport/Stream.php

Updated version of #96