Feature/csv template download

Instead of holding text in the table, how about generating it from the devices and sorting the columns by device id and sensor type?