Refactor non proxy hosts handling, fix #202 in 1.7.x

This homogenizes non proxy hosts handling across providers in 1.7.x. It also makes ProxyServer computation more efficient (not compute it over and over again for the same request).

The same work has to be done in master.