Change URL scheme to allow for paths

The "/" character in URLs is now converted into
"--" in the app's "urlname".

Also fix a few bugs