Fixed everything to use relative links, and to detect whether or not something is an external URL or not _before_ prepending the site base url.  Requires scheme-less URLs.