Add support for serving stale responses on error from origin.
Add support for varying cache key based on specified cookie values.
Minor cleanup and add license.