Re-factor handling of the referer [sic] http header, including meta tag and rel attribute overrides. Implement new unit tests, replacing unit tests broken in pull request #102. Addresses issue #104.