Recreate/update sensors based on edited keys.

- Delete synthetic sensors that have period or unit changed
  and create new synthetic sensors
- Copy metadata from original sensor
- Don't fill in upper and lower ts for new synthetic sensors
- Add tests

Fixes #432