Exporting
This adds a function and url to export messages and categories to a downloaded json file.
The url is /learn/export-spam and it checks the user is a superuser
Information in the json:
- categories: id, name
- messages: message_id, subject, body, category_id, classified
The set of messages are derived from the first message in every Conversation