Allow stream connections to support proxies. 

Also, base stream context on default context settings.

Tracker: https://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33835&start=0