I#28640: Set headers for static content

This is a regression fix since at some point the static content served
from /static/ path had the 'Expires' and 'Cache-Control' headers removed
(probably when started serving it with Static middleware). Additionally,
add support for static content served from custom StaticRoots.
Merge branch '4.2/cache-control-regression' into 4.2-trunk