Added format to content negotiation

Updated content negotiation so that it takes the :format route param in to account when determining mime type.