log x-real-ip rather than remote ip in metrics stuff to get the proper ip in anonymous metrics logs. closes #391