Bug 863226 - Port bugfixes and improvements to the chat log tree from Instantbird. r=florian