Rewrote URL references and redirects to be relative, not absolute, so server can be cleanly proxied/embedded from elsewhere.
some touchups to 2664f794
Merge pull request #129 from Krellan/master