Improvements to devices UI

Fixes #318
Fixes #317 
Fixes #219 

- Always show add btn & parse lang and lat.
- Don't overwrite metadata and location on devices when encoding devices
  in k.h.d.
- Allow to add a sensor when adding device.
- Don't clear forms when alert pops up.