Rewrote URL references and redirects to be relative

Using relative paths throughout, instead of absolute paths that referenced toplevel.
This is so that the Web server can be cleanly proxied/embedded from elsewhere.
Tested, and works for me.