Fix hostname handling in no_proxy support. Add more tests.
Make sure no_proxy hostname matching is not case sensitive.