Add median calculation and test.
Fix generating 200 x median.
Add quality check column to devices.
Move data check functions out of test ns, add should-check?
Add function to find invalid readings.
Add structure for checking broken sensors.