Export functionality

I'm starting to work on making exporting happen. Not at all ready to merge - I'm just curious what you think.
But it will exist as long as it's showing? It hasn't vanished weirdly yet so I'll assume this is working.