Add proper handling for reverse proxies

Basic configuration options and filter

Add configuration options to template

Woops, we can't use filters

Qualify the name 'Tool'

Remove leftover 'self' argument