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
You declare `threadsCollapsed` as a mutable dictionary. Just test for its definition (`if (threadsCollapsed)`).