Save configuration after user edited it or after web update.

Closes #10