Add proxy and auth support to wfs client (#3982)

Copied & adapted from similar code in mapwmslayer.c.

Fix two copy-pasto errors while here, wfs_http_cookie was not
looked up.