fix ThreadBuffer.get_selected_messagetree

to work based on the new Buffer structure.
fix collapse of selected message in thread buffer

.. which was based on deprecated ThreadBuffer.get_selection
(renamed to get_selected_messagetree)
use headers pile in message trees.

.. this should better be done using a ListWalker instead of a pile.
(has to be interpreted by NestedTree)