Fix EZP-20890: Legacy kernel controller to handle Content-Type header

See https://jira.ez.no/browse/EZP-20890

This is mainly for `/layout/set/...` URIs when used to generate xml/rss/... content together with a Content-Type header set by `layout.ini` configurations