Improved proxy handling.
changed webclient api
Added public_ip function