Feature/json exporter

A quick first pass at a JSON exporter. Would welcome some feedback around which fields are required, useful, etc.

For #5343

Note that this hasn't touched the XML export functionality at all.
It's an important feature, but the big headings are for things the podmin _needs_ to read and know for update ;)