Topic/location export

Implements CSV export button, plus some bug fixes/cleanup