Getting /community and /community/:id to output json/xml