Started work on export

Rudimentary export to SD card should work. Change format of export from
XML to JSON.