Added proxy support. Fix double Passwd in login query.