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
Merge pull request #360 from nightexcessive/feature/reverse-proxy

Add proper handling for reverse proxies