Changed the way the URL stream is opened. Use URLConnection now. Added an empty protected method that can be overridden to set parameters like HTTP Basic Authentication on the URLConnection. Convenience method added for handling HTTP Basic Authentication.