Plotting

Added a live connection between the GUI and the plotting functionality.
plot.html still supports reading of plot data from file.