Added support for multiple proxy_cache_valid directives

This involved converting the proxy_cache_valid param to an array and updating the template to match.