Take advantage to the in-browser saving capability to save the oscilloscope waveform to csv
and add the corresponding button "save/restore"
Also includes some preparation to support cursors