Use cross-platform path to URL, rather than string mangling.

What it says.

Also moved a time.sleep() into threaded server code, which was where it was needed.