Refactored URLStreamer code to accomodate Apache HttpClient 4.3.x