handle multiple formats specified in the http request accept header

a little more progress for #20 ;  now returns valid mime type in response header even when mult formats are in request accept header.