Improved proxy support

Hello,
the proxy support of my last commit required a realm (besides username/password) to be specified, in order to use proxy authentication. This realm parameter is now obsolete, which makes authentication much easier. Besides that i did some minor modifications.

Greetings
Jakob