Make mimetype detector recognize case-insensitive doctype prolog.
Revise regex to take into account case-insensitivity.
Followup on d999ae9: add test, remove now unnecessary grouping in regexp.
Add HTML test case with UTF-8 BOM (catches ARI-4078).
Strip off BOM before mime-type detection. Fixes ARI-4078.
(also: fix wrong comment on BOM)
Add a test catching ARI-4071 (Resource is not reset after peeking into gzip-ed payload)
FIX: gzip-ed resource does not render correctly (ARI-4071)
Add a test of SelectorReplayDispatcher + MimeTypeDetector, that it falls back to mime type in CDX when detection failed.
SimpleMimeTypeDetector: detect HTML that does not start with HTML/HEAD/STYLE/SCRIPT etc. Make CSS detection more strict. Fixes ARI-4109.
Merge branch 'mimetype-detector' into ait-qa