Updated Averaging techniques. 

Averages are now properly implemented. 

Pre-10 sec averages will post total averages. I.e. at second 6, Avg10 is the average of all 6 seconds. 

I am worried about the update rate. I do not have an ipad / ipad simulator and could not test the wifi connection, but it is properly printing valid JSON lines.