JSON generation and TriplesMap DAG fixes

Removed old hard coded JSON generation from ExportJSONCommand
In cleaning for DAG, we could lose triples maps when we remove links.