Add local function "toURLOrError".

This will print an error message and halt immediately if the input is not a valid URL. Though I have not yet been able to create an invalid URL. NSURL even accepts * and : in the path itself.
Enable "/" as file path concatenation operator.

Now you can do `let filepath = tempdirectory / "newfile.txt"`.