Modernize HTTPMessage; add automatic mime-type detection