Refactor device dao code.
Set datepicker width.
Limit number of plotted samples to 500 via a crude decimation.