Added fixes for reverse proxy.
added get_ip function
oooops.
forgot to pass request...
Added warning if config is wrong when configured for reverse proxy.
accidentally committed this file.
Merge pull request #23 from rmagee/master

Reverse Proxy Support