Make code more tidy.
Use PersistentDictionary to store web perferences.