Revert "Revert "Init settings""
Merge pull request #88 from emonhub/revert-87-revert-86-init_settings

Reapply  "Init settings" merge