Adds a forced save of the preference store after modification from outside.

Refs #36