Editable devices

- Don't select row when it's being edited.
- Add checkbox for creating calculating fields.
- Add allowed?* for devices.
- Use chart's date format.
- Make table scrollable (when the screen is too small to allow for
  required min table width)
- Don't use minified library for development. Hide divs instead of removing them.

this should be from k.h.d.sensors/get-by-id (taking a device_id and a type)