added reverse_proxied class

we needed to hide the app behind an nginx reverse proxy. tested and deployed.