SharefPref StringSet implementation

This is implementing #264. The code is based on #543, but i changed the serialization to XML, as the conversion has come to this.
Good question indeed. I opened #1039 to discuss it.