Classification: add API to export classification ontologies

The new API is available as "classification/<workspace_id>/export_ontology and
returns a JSON representation of all classification ontologies, including all
sub-paths.