Pass server response to stream endCallback

This allows the endCallback to handle failure cases, like 'Exceeded streaming limit.'
Merge pull request #19 from jsha/patch-1

Pass server response to stream endCallback