Add support for authenticated proxy to community_rest#stream

A first attempt at fixing #656