Reapply  "Init settings" merge

Reverts emonhub/emonhub#87