Rewrote URL references and redirects

to be relative, not absolute so server can be cleanly proxied/embedded
from elsewhere.