Set up initial graphs

I have moved the ajax functionality to its own function and moved it to
sensordata-highcharts so this is a big commit.