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.
Allow for formatting perfStats header field in JSON.
Add PerfStats.getTotal(String), deprecate UIResults.getTotalCount().
Make PerfStats.OutputFormat public so that Spring can set property from string.
FIX PerfStats.getAllStats() writes count instead of total in JSON format. 
Write “null” if entry.isErr.
Avoid updating total stat more than once.
Merge branch 'perf-header'
Merge branch 'mimetype-detector'

Conflicts:
	wayback-core/src/main/java/org/archive/wayback/replay/mimetype/SimpleMimeTypeDetector.java
	wayback-core/src/test/java/org/archive/wayback/replay/mimetype/SimpleMimeTypeDetectorTest.java