Added support for using the module behind reverse proxies and load balancers.
Bumped version to 1.2