Upstream: fixed inheritance of proxy_store and friends.

The proxy_store, fastcgi_store, scgi_store and uwsgi_store were inherited
incorrectly if a directive with variables was defined, and then redefined
to the "on" value, i.e. in configurations like:

    proxy_store /data/www$upstream_http_x_store;

    location / {
        proxy_store on;
    }
Headers filter: local variables for config, no functional changes.
Headers filter: variables support in expires (ticket #113).
Autoindex: rendering code moved to a separate function.

No functional changes.
Autoindex: implemented JSON output format.
Autoindex: implemented XML output format.