Added content negotiaton to activeClasses to return XML and JSON