added content negotiation for both json and jsonp for the GET endpoints