Stream support in the Client. Fixes #320.