Possibility to collapsed threads with persistance

The user have the possibility to collapse threads of emails. 
The information about the collapsed threads are kept inside the user settings under the module Mail saved by the key : threadsCollapsed
`UserSettings.Mail.threadsCollapsed` could be undefined. In this case, it raises an exception.