improved how branched threads are displayed.
moved some constants into app.constants.
improved deletion code, so tailing deleted messages are purged.