Adding functions for preparing http urls in net::util. Refactoring of http connector.