Implement functions for working with url

hostFromUrl, resourceFromUrl and normalizeUrl functions implemented
added test for these functions