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.
Can we just remove the xml link totally? It's malformed (#4032) doesn't include any useful data that this new json exporter wouldn't include?

Also, then the button could be called just `download my profile`.