Do not depend on `url-parse` for extracting hosts from urls

This fixes for #1939. Tests have been added to test/el-get-issue-1939.el
Merge pull request #1940 from iqbalansari/master

Do not depend on `url-parse` for extracting hosts from urls