Adds support to read the x-forwarded-for header commonly use for proxy

Addressed issue #50