[prefs] Allow defining onChange handler when defining preference
[code-ruleset] Autosave rules periodically (close #84)