Use repo_url as base for retrieving host, port and path
Update ubuntu preseed file to use new helper methods
Extract scheme from repo url