made a little bit of syntax less verbose
Moved multi-mime-type response functionality from helper function to middleware. ta-da.