Enh #2131 Added two functions (getPreferredAcceptTypes() and
getPreferredAcceptType()) to parse the Accept header and return a list
of accepted types in order of preference.