support for running behind proxies (no absolute URLs)

- e-mails need to use an absolute URL so the public hostname can be set under email settings