Add support for real_ip_header to use any variable

Hi,

I want to use the realip module, but I have the real IP at a different
header (X-User-IP) and I can’t change it.
I thus added support to real_ip_header to use any variable, instead of
just the headers X-Real-IP and X-Forwarded-For, so now you can do:

real_ip_header $http_x_user_ip;

The patch keeps backwards compatibility, so you can still use
X-Real-IP and X-Forwarded-For, and it defaults to X-Real-IP.

While I was at it, I did a couple of mini optimizations in
ngx_http_variables. As I didn’t benchmarked that change (or tested it
in detail), I’m putting it in a second patch (variable.patch).

It’s my first look at nginx code, so I probably got something wrong,
but so far it seems to work here[TM]. I hope you will find it useful
enough to include it in nginx.

Cheers,