set content_type depending on service.formats and accept header
store content type in env["wd.format"] instead of params[:format]
store media type in env["wd.media_type"]
if Accept header is nil, select the first defined service format as wd.format and set wd.media_type to */*
add rack-accept dependency to gemspec