Client Remote IP address detection improvement

- added functions to detect client remote ip address properly (in cases when client proxy IP changes), by checking multiple different header field that might be populated by proxy.