[bugfix] corrected media type parameters for %rest:consumes %rest:produc...

Also now handles quality factors in HTTP Accept Headers