Added support for authenticated proxy (Thanks Blaze)