closes #143 error controller wraps the page switch, stats collects the 404 as the referrer and the URI of the page.